package com.lanxin.stu.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * @author cyh
 * @create 2025-09-17 9:06
 */
@Data
@ApiModel(value = "修改班级对象")
public class ClassesDTO implements Serializable {

    @ApiModelProperty(value = "班级编号",required = true)
    @NotNull(message = "班级编号不能为空")
    @Positive(message = "班级编号不正确")
    private Integer id;

    @ApiModelProperty(value = "班级名称",required = true)
    @NotBlank(message = "班级名称不能为空")
    private String cname;
}